package io.wit.modules.wit.service.impl;

import io.wit.modules.wit.dao.ReportDao;
import io.wit.modules.wit.entity.FarmEntity;
import io.wit.modules.wit.entity.ReportEntity;
import io.wit.modules.wit.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("ReportService")
public class ReportServiceImpl implements ReportService{
	@Autowired
	private ReportDao reportDao;
	@Override
	public List<ReportEntity> cashierLists(Long subject_id, int state) {
		return reportDao.cashierLists(subject_id,state);
	}

	@Override
	public List<ReportEntity> estatedistributeLists(int state) {
		return reportDao.estatedistributeLists(state);
	}

	@Override
	public List<ReportEntity> marketLists(Long subject_id) {
		return reportDao.marketLists(subject_id);
	}

	@Override
	public List<ReportEntity> subjectdistributeLists(Long deptId) {
		return reportDao.subjectdistributeLists(deptId);
	}

	@Override
	public List<ReportEntity> subjectworkerLists(Long subjectId) {
		return reportDao.subjectworkerLists(subjectId);
	}

	@Override
	public List<FarmEntity> seedlist(Map<String, Object> params) {
		return reportDao.seedlist(params);
	}

	@Override
	public List<FarmEntity> breedlist(Map<String, Object> params) {
		return reportDao.breedlist(params);
	}
	
}
